<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Zend_View_Helper_FormElement</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Zend_View_Helper_FormElement</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|													<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Base helper for form elements.  Extend this, don't use it on its own.</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)</li>
				<li><span class="field">abstract:</span> </li>
				<li><span class="field">usedby:</span> <a href="../../Zend_View/Helper/Zend_View_Helper_HtmlList.html">Zend_View_Helper_HtmlList</a></li>
				<li><span class="field">license:</span> <a href="http://framework.zend.com/license/new-bsd">New BSD License</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_mvc---view---helper---zend---FormElement.php.html">/mvc/view/helper/zend/FormElement.php</a> (line <span class="field">32</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_FormCancel.html">PHP_MVC_View_Form_Helper_FormCancel</a></td>
					<td>
											PHP_MVC_View_Form_Helper_FormCancel class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../mvc/PHP_MVC_View_Form_Helper_Label.html">PHP_MVC_View_Form_Helper_Label</a></td>
					<td>
											PHP_MVC_View_Form_Helper_Label class
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormButton.html">Zend_View_Helper_FormButton</a></td>
					<td>
											Helper to generate a &quot;button&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormCheckbox.html">Zend_View_Helper_FormCheckbox</a></td>
					<td>
											Helper to generate a &quot;checkbox&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormFile.html">Zend_View_Helper_FormFile</a></td>
					<td>
											Helper to generate a &quot;file&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormHidden.html">Zend_View_Helper_FormHidden</a></td>
					<td>
											Helper to generate a &quot;hidden&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormImage.html">Zend_View_Helper_FormImage</a></td>
					<td>
											Helper to generate an &quot;image&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormNote.html">Zend_View_Helper_FormNote</a></td>
					<td>
											Helper to show an HTML note
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormPassword.html">Zend_View_Helper_FormPassword</a></td>
					<td>
											Helper to generate a &quot;password&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormRadio.html">Zend_View_Helper_FormRadio</a></td>
					<td>
											Helper to generate a set of radio button elements
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormReset.html">Zend_View_Helper_FormReset</a></td>
					<td>
											Helper to generate a &quot;reset&quot; button
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormSelect.html">Zend_View_Helper_FormSelect</a></td>
					<td>
											Helper to generate &quot;select&quot; list of options
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormSubmit.html">Zend_View_Helper_FormSubmit</a></td>
					<td>
											Helper to generate a &quot;submit&quot; button
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormText.html">Zend_View_Helper_FormText</a></td>
					<td>
											Helper to generate a &quot;text&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_FormTextarea.html">Zend_View_Helper_FormTextarea</a></td>
					<td>
											Helper to generate a &quot;textarea&quot; element
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../../Zend_View/Helper/Zend_View_Helper_HtmlList.html">Zend_View_Helper_HtmlList</a></td>
					<td>
											Helper for ordered and unordered lists
										</td>
				</tr>
							</table>
		</div>
	</div>



	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																												
												<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#_getInfo" title="details" class="method-name">_getInfo</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$attribs</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$listsep</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_hidden" title="details" class="method-name">_hidden</a>
											(<span class="var-type">$name</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">$value</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">$attribs</span>&nbsp;<span class="var-name">$attribs</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#_htmlAttribs" title="details" class="method-name">_htmlAttribs</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$attribs</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method_getInfo" id="_getInfo"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_getInfo</span> (line <span class="line-number">73</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts parameter arguments to an element info array.</p>
<p class="description"><p>E.g, formExample($name, $value, $attribs, $options, $listsep) is  the same thing as formExample(array('name' =&gt; ...)).</p><p>Note that you cannot pass a 'disable' param; you need to pass  it as an 'attribs' key.  A &quot;'readonly' =&gt; 'readonly'&quot; attribs  key-value pair has the same effect as &quot;'disable' =&gt; true&quot;.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An element info array with keys for name, value,  attribs, options, listsep, and disable.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			_getInfo
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$attribs</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$listsep</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$name</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$value</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$attribs</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$options</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$listsep</span>			</li>
				</ul>
		
			
	</div>
<a name="method_hidden" id="_hidden"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_hidden</span> (line <span class="line-number">155</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Creates a hidden element.</p>
<p class="description"><p>We have this as a common method because other elements often  need hidden elements for their operation.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> A hidden element.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_hidden
		</span>
					(<span class="var-type">$name</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">$value</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">null</span>], [<span class="var-type">$attribs</span>&nbsp;<span class="var-name">$attribs</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$name</span>
				<span class="var-name">$name</span><span class="var-description">: The element name.</span>			</li>
					<li>
				<span class="var-type">$value</span>
				<span class="var-name">$value</span><span class="var-description">: The element value.</span>			</li>
					<li>
				<span class="var-type">$attribs</span>
				<span class="var-name">$attribs</span><span class="var-description">: Attributes for the element.</span>			</li>
				</ul>
		
			
	</div>
<a name="method_htmlAttribs" id="_htmlAttribs"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_htmlAttribs</span> (line <span class="line-number">44</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Converts an associative array to a string of tag attributes.</p>
	<ul class="tags">
				<li><span class="field">return:</span> The XHTML for the attributes.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			_htmlAttribs
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$attribs</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$attribs</span><span class="var-description">: From this array, each key-value pair is  converted to an attribute name and value.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Sun, 10 Feb 2008 15:16:16 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>